package com.ruoyi.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 user_order
 *
 * @author ruoyi
 * @date 2023-02-20
 */
@Data
public class UserOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id ;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("orderId", getOrderId())
            .toString();
    }
}
